<template>
	<div class="home">
		首页
		<span @click="skipTestPage">进入测试</span>
		
		<el-input v-model="testName"></el-input>
	</div>
</template>

<script>
	export default {
		name: "Home",
		data () {
			return {
				testName: ""
			}
		},
		
		methods: {
			skipTestPage () {
				let obj = {
					name: "AddTag",
					title: "添加标签",
					actived: true,
					router: "/AddTag",
					meta: {
						keepAlive: true
					}
				}
				
				this.$store.commit("addTag", obj);
				this.$store.commit("cache", obj);// 缓存路由
				this.$router.push({
					path: "/AddTag"
				})
			}
		},

		activated () {
			
		},

		deactivated () {
			
		}
	}
</script>

<style scoped>
	@import "../../assets/css/common.css";
</style>
